﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Navigation;
using Baosight.ZNH.ZMCommon;
using Baosight.Platform.Core;
using Baosight.ZNH.ZMCM.UI.ChildWindows;
using Baosight.ZNH.ZMCommon.ChildWindows;
using Telerik.Windows.Controls;
using Baosight.ZNH.ZMCM.UI.Utils;
using System.Text;
using Baosight.Platform.Core.UI.Controls;

namespace Baosight.ZNH.ZMCM.UI
{
    public partial class ZMCMC2 : EFViewCmes
    {
        public ZMCMC2()
        {
            InitializeComponent();
        }
        public override void Initialize(EIInfo initData)
        {
            base.Initialize(initData);
        }

        private void EFTab_SelectionChanged(object sender, RoutedEventArgs e)
        {
            EFTab tab = sender as EFTab;
            if (tab.SelectedItem != null)
            {
                if (tab.SelectedItem.Equals(this.TrunoverMaterialBase))
                {
                    this.TrunoverMaterialBase.LoadView("ZMCMC1");
                }
                else if (tab.SelectedItem.Equals(this.MaterialTrunover))
                {
                    this.MaterialTrunover.LoadView("ZMCMC0");
                }
            }
        }
      
    }
}
